package dd.prog2.exercises.set02.sequences2;

public class SequenceTest {

	private static void println(iSequence is) {
		int limit = 0;
		while (is.hasNext() && limit++ <= 10) {
			System.out.print(is.nextElement() + ", ");
		}
		System.out.println();
	}

	public static void main(String[] args) {
		System.out.println("Naturals");
		println(new Naturals());
		System.out.println("Range");
		println(new Range(7, 14));
		System.out.println("Evens");
		println(new Evens(new Range(7, 14)));
		System.out.println("ZapMultiples");
		println(new ZapMultiples(new Range(7, 14), 3));

//		println(new ZapMultiples(new Evens(new Naturals()), 2));

	}

}
